import request from '@/utils/request'

export function getRegions(query) {
  return request({
    url: '/region/list',
    method: 'get',
    params: query
  })
}

export function createRegion(data) {
  return request({
    url: '/region/create',
    method: 'post',
    data
  })
}

export function updateRegion(data) {
  return request({
    url: '/region/update',
    method: 'post',
    data
  })
}
